<?php defined('_JEXEC') or die('Restricted access');?>
<form action="index.php" method="post" name="adminForm">
<div id="editcell">
	<table class="adminlist">
	<thead>
		<tr>			
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
			</th>
			<th>
				<?php echo JText::_( 'Kota' ); ?>
			</th>
			<th>
				<?php echo JText::_( 'Nama Restauran' ); ?>
			</th>
			<th>
				<?php echo JText::_( 'Alamat Restauran' ); ?>
			</th>
			<th>
				<?php echo JText::_( 'Telp Restauran' ); ?>
			</th>
			<th>
				<?php echo JText::_( 'Website Restauran' ); ?>
			</th>
		</tr>
	</thead>
	<?php
	$k = 0;
    //print_r($this->items);
	for ($i=1, $n=count($this->items); $i < $n; $i=$i+2)
	{
		//$row = &$this->items[$i];
		$checked 	= JHTML::_('grid.id',   $i, $this->items[$i][id_rest] );
		//$link 		= JRoute::_( 'index.php?option=com_restauran&task=edit&layout=form&view=data&cid[]='. $row->id_rest );
		//$published = JHTML::_('grid.published', $row, $i );

		?>
		<tr class="<?php //echo "row$k"; ?>">
			<td>
				<?php echo $checked; ?>
			</td>
			<td>
				<?php echo $this->items[$i][kota]; ?>
			</td>
			<td>
				<?php echo $this->items[$i][nama_rest]; ?>
			</td>
			<td>
				<?php echo $this->items[$i][alamat_rest]; ?>
			</td>
			<td>
				<?php echo $this->items[$i][telp_rest]; ?>
			</td>
			<td>
				<?php echo $this->items[$i][website_rest]; ?>
			</td>
		</tr>
		<?php
		$k = 1 - $k;
	}
	?>
	</table>
</div>

<input type="hidden" name="option" value="com_restoran" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="formrestoran" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="view" value="formrestoran" />
<input type="hidden" name="layout" value="formtambah" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
